<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>remote</title>
    <link rel="stylesheet" href="./style.css" />
  </head>
  <body>
    <div class="remote-wrap">
      <h1>简陋的控制终端</h1>
      <div class="info-item">
        <label>连接状态：</label>
        <span id="status-show"></span>
      </div>
      <div class="ctrl-box">
        <img id="up" src="./assets/up.svg" class="up-icon" alt="" />
        <img id="down" src="./assets/down.svg" class="down-icon" alt="" />
        <img id="left" src="./assets/left.svg" class="left-icon" alt="" />
        <img id="right" src="./assets/right.svg" class="right-icon" alt="" />
      </div>
    </div>
    <script
      type="text/javascript"
      src="http://upcdn.b0.upaiyun.com/libs/jquery/jquery-2.0.3.min.js"
    ></script>
    <script>
      document.write(
        `<script src="http://${window.location.hostname}:8003/socket.io/socket.io.js"><\/script>`
      );
    </script>
    <script src="./lib/remote.js" type="text/javascript"></script>
  </body>
</html>
